<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        .container {
            width: 250px;
            height: 130px;
            background-color: orange;
        }

        .grid {
            height: inherit;
            background-image:
                linear-gradient(to bottom, transparent 40px, yellow 41px),
                linear-gradient(to right, transparent 40px, yellow 41px);
            background-size: 41px 41px;
            /* background-repeat: no-repeat; */
        }

        .test {
            margin-top: 50px;
            height: 100px;
            width: 800px;
            background-image: linear-gradient(90deg, red 10px, blue 40px);
        }

        .reference {
            width: 100px;
            height: 100px;
            margin-top: 50px;
            background-color: red;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="grid"></div>
    </div>
    <!-- 
    <div class="test">

    </div>
    <div class="reference">

    </div> -->
</body>

</html>